package com.chief;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chief.entity.Goods;
import com.chief.mapper.GoodsMapper;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

@DubboService
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements GoodsTestService{

    @Autowired
    private GoodsMapper goodsMapper;

    @Override
    public void reduce(String goodsName, Integer num) {
        Goods goods = new Goods();
        goods.setNum(num);
        goods.setGoodsName(goodsName);
        super.save(goods);
    }

}
